import { _decorator, Component, Node, v3 } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('loading')
export class loading extends Component {
    @property(Node)
    bg:Node
    private speed:number = 360
    start() {

    }

    update(deltaTime: number) {
        let z = this.bg.eulerAngles.z
        this.bg.setRotationFromEuler(v3(0,0, z - deltaTime * this.speed))
    }
}


